package com.java.basis.extend;

public class Test01 {
    public static void main(String[] args) {
        People stu = new Student("zhansan", "math");
        People emp = new Employee("lisi", 10000);
        System.out.println("stu = " + stu);
        System.out.println("stu = " + stu.getDesc());
        System.out.println("emp = " + emp);
        System.out.println("emp = " + emp.getDesc());

        if(stu instanceof People) {

        }

    }
}
